import { createRouter, createWebHistory } from "vue-router"
import HomeView from "../views/HomeView.vue"
import LittleView from "../views/LittleView.vue"
import LeavingView from "../views/LeavingView.vue"
import AboutView from "../views/AboutView.vue"
import LoveImageView from "../views/LoveImageView.vue"
import ListView from "../views/ListView.vue"
import AdminView from "../views/AdminView.vue"
import LargeScreen from "../views/LargeScreen.vue"
import Login from "../views/Login.vue"

const routes = [
	{
		path: "/login",
		name: "login",
		component: Login,
	},
	{
		path: "/",
		name: "home",
		component: HomeView,
	},
	{
		path: "/little",
		name: "little",
		component: LittleView,
	},
	{
		path: "/leaving",
		name: "leaving",
		component: LeavingView,
	},
	{
		path: "/about",
		name: "about",
		component: AboutView,
	},
	{
		path: "/loveImg",
		name: "loveImg",
		component: LoveImageView,
	},
	{
		path: "/list",
		name: "list",
		component: ListView,
	},
	{
		path: "/admin",
		name: "admin",
		component: AdminView,
	},
	{
		path: "/LargeScreen",
		name: "LargeScreen",
		component: LargeScreen,
	},
]

const router = createRouter({
	// 临时改为 hash 模式测试
	history: createWebHistory(),
	routes,
})

export default router
